From: Carlos Soriano Date: Thu, 18 Feb 2016 09:53:35 +0000 (+0100) Subject: gtkplacessidebar: remove unneeded condition X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~3051 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=40c0a6aa8753ec80963c163f6d3c1baf6f5945af;p=gtk%2B3.0.git gtkplacessidebar: remove unneeded condition We check for it before anyway, and in this case make sense to show the eject button in both cases. --- diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index e6dfbc22be..5e74d99aec 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -451,10 +451,7 @@ add_place (GtkPlacesSidebar *sidebar, if (show_unmount || show_eject) g_assert (place_type != PLACES_BOOKMARK); - if (mount == NULL) - show_eject_button = FALSE; - else - show_eject_button = (show_unmount || show_eject); + show_eject_button = (show_unmount || show_eject); tooltip_escaped = g_markup_escape_text (tooltip, -1); row = g_object_new (GTK_TYPE_SIDEBAR_ROW,